package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
@NoArgsConstructor
@Getter
@Setter
@TableName(value = "tb_visit_history")
public class VisitHistory implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("openid")
    private String openid;
    @TableField("video_id")
    private Integer videoId;
    @TableField("course_id")
    private Integer courseId;
    @TableField("video_location")
    private Integer videoLocation;
    @TableField(exist=false)
    private LocalDateTime createDate;
    @TableField(exist=false)
    private Integer deleteFlag;
}
